<?php
    require('plugin.php');

    if (!isset($_GET['id'])){
        header("HTTP/1.1 404 Not Found");
        exit('invalid parameter:id');
    }
    
    $mserver=new mserver();

    $fileurl=$mserver->getInfo($_GET['id'])->songLink;


    header('Content-Type:audio/mpeg');

    echo file_get_contents($fileurl);

?>